#ifndef DEFECT_H
#define DEFECT_H
#include <QObject>
#include <QRectF>
#include <QString>

/**
 * @brief 访问数据库中Defect表格的pojo类
 */

class Defect : public QObject
{
    Q_OBJECT
public:
    Defect();
    Defect(int id, int detectionid, QString type, QRectF range, QString note);

private:
    //
    int id;
    int detectionid;
    QString type;
    QRectF range;
    QString note;

public:
    int getId() { return id; }
    int getDetectionId() { return detectionid; }
    QString getType() { return type; }
    QRectF &getRect() { return range; }
    QString getNote() { return note; }

    void setId(int value) { id = value; }
    void setDetectionId(int value) { detectionid = value; }
    void setType(QString value) { type = value; }
    void setRect(QRectF value) { range = value; }
    void setNote(QString value) { note = value; }
};

#endif // DEFECT_H
